package com.zhongxing.administrator.spritelhd.view;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;

/**
 * Created by Administrator on 2017/7/1.
 */

public class BaseView  {
    protected View view;
    protected Context context;
    BaseView(Context context) {
        this.context = context;
    }
    public void initUI(){

    }

    public   View getView(){

        return view;
    };

    public void setContentView(int layout){

        view  = LayoutInflater.from(context).inflate(layout,null);

    }

    public View findViewById(int id){

        return view.findViewById(id);
    }
}
